﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Lian.yiban
{
    /// <summary>
    /// VideoLikeHandler 的摘要说明
    /// </summary>
    public class VideoLikeHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string videoId = context.Request.QueryString["videoId"];
            string userIdStr = context.Request.QueryString["userId"];
            if (!string.IsNullOrWhiteSpace(videoId) &&
                !string.IsNullOrWhiteSpace(userIdStr))
            {
                // 执行操作
                int userId = int.Parse(userIdStr);
                
            }

            // 输出结果
            context.Response.ContentType = "text/plain";
            context.Response.Write("ok");
            context.Response.End();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}